<form method="post" enctype="multipart/form-data" target="_blank" id="form-order">
    <div class="table-responsive">
        <table class="table table-bordered table-hover">

            <thead>
            <tr>
                <td class="text-center" width="75px;">订单状态</td>
                <td class="text-center">订单编号</td>
                <td class="text-center">课程信息</td>
                <td class="text-center">购买数量</td>
                <td class="text-center">留言</td>
                <td class="text-center">下单时间</td>
                <td class="text-center">操作</td>
            </tr>
            </thead>

            <tbody>
            <volist name="list" id="list">
                <tr>

                    <td class="text-center">{$orderCourseStatus[$list.orderStatus]}</td>
                    <td class="text-center">{$list.orderCourseNo}</td>
                    <td class="text-center">{$list.orderCourseName} / {$list.shopName} / {$list.coach.coachName}</td>
                    <td class="text-center">{$list.orderNum}</td>
                    <td class="text-center">{$list.orderNote}</td>
                    <td class="text-center">{:date('Y-m-d h:i', $list.orderAddTime)}</td>
                    <td class="text-center">

                        <a href="javascript:;" style="margin:0" onclick="layerAlert('查看详情', '{:U('order/getCourseDetail', array('orderId' => $list.orderCourseId))}', '70%', '85%')" class="btn btn-primary" title="查看详情"><i class="fa fa-eye"></i></a>

                        <a href="javascript:;" onclick="layerAlert('订单记录', '{:U('order/orderCourseNote', array('orderId' => $list.orderCourseId))}', '70%', '85%')" class="btn btn-success" title="订单记录"><i class="fa fa-bars"></i></a>

                    </td>
                </tr>
            </volist>

            </tbody>
        </table>
    </div>
</form>
<div class="row">
    <div class="col-sm-3 text-left"></div>
    <div class="col-sm-9 text-right">{$page}</div>
</div>
<script>
    // 点击分页触发的事件
    $(".pagination  a").click(function(){
        cur_page = $(this).data('p');
        ajax_get_table('search-form', cur_page);
    });

</script>